<?php
// +----------------------------------------------------------------------
// | OneKeyAdmin [ Believe that you can do better ]
// +----------------------------------------------------------------------
// | Copyright (c) 2020-2023 http://onekeyadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: MUKE <513038996@qq.com>
// +----------------------------------------------------------------------
namespace plugins\pay\admin\controller;

use think\facade\View;
use plugins\pay\addons\Alipay;
use plugins\pay\addons\Wechat;
use app\admin\BaseController;
/**
 * 支付测试（标准结构）
 */
class Test extends BaseController
{
	public function alipay()
    {
    	$result = Alipay::qrCodePay(rand_id(16),'测试',0.01,$this->request->domain() . '/pay/notify/alipay');
        return json($result);
    }

    public function wechat()
    {
    	$result = Wechat::qrCodePay(rand_id(16),'测试',0.01,$this->request->domain() . '/pay/notify/wechat');
        return json($result);
    }
}